package org.vectrics.recruiter;

import org.vectrics.provider.CoreServiceLocator;
import org.vectrics.recruiter.company.RecruitCompanyService;
import org.vectrics.recruiter.config.RecruitConfig;
import org.vectrics.recruiter.job.JobProvider;
import org.vectrics.recruiter.job.JobSearcher;
import org.vectrics.recruiter.job.JobStatusTransitionFilter;
import org.vectrics.recruiter.user.InterviewSearcher;
import org.vectrics.recruiter.user.RecruitUserProvider;
import org.vectrics.recruiter.user.resume.email.WordExtractor;
import org.vectrics.skill.SkillProvider;

/**
 * @author mmoore
 */
public class RecruitServiceLocator extends CoreServiceLocator {

	
	public static JobStatusTransitionFilter getJobStatusTransitionFilter() {
		return (JobStatusTransitionFilter)findServiceBean(JobStatusTransitionFilter.BEAN_ID);
	}
	
	public static WordExtractor getWordExtractor() {
		WordExtractor wordExtractor = (WordExtractor)findServiceBean(WordExtractor.BEAN_ID);
        return(wordExtractor);
		
	}
	
	public static JobSearcher getJobSearcher() {
		JobSearcher searcher = (JobSearcher)findServiceBean(JobSearcher.BEAN_ID);
        return(searcher);
    }
	
	public static RecruitUserProvider getRecruitUserService() {
		RecruitUserProvider provider = (RecruitUserProvider)findServiceBean(RecruitUserProvider.BEAN_ID);
        return(provider);
    }

	public static RecruitCompanyService getRecruitCompanyService() {
		RecruitCompanyService provider = (RecruitCompanyService)findServiceBean(RecruitCompanyService.BEAN_ID);
        return(provider);
    }

	
	public static SkillProvider getSkillProvider() {
		SkillProvider provider = (SkillProvider)findServiceBean(SkillProvider.BEAN_ID);
        return(provider);
	}
	
	public static JobProvider getJobProvider() {
		JobProvider provider = (JobProvider)findServiceBean(JobProvider.BEAN_ID);
        return(provider);
    }
	
	public static RecruitConfig getRecruitConfiguration() {
		return RecruitConfig.getRecruitInstance();
	}
	
	public static InterviewSearcher getInterviewSearcher() {
		InterviewSearcher searcher = (InterviewSearcher)findServiceBean(InterviewSearcher.BEAN_ID);
		return(searcher);
	}
	
}
